export default {
  data () {
    return {
      scrollOptions: {
        scrollX: false,
        scrollY: true,
        click: true
      }
    }
  },
  computed: {
    scroll () {
      return this.$refs.scroll
    }
  },
  methods: {
    refresh () {
      this.$nextTick(_ => {
        this.scroll && this.$refs.scroll.refresh()
      })
    },
    scrollTo (x, y, duration) {
      this.scroll && this.scroll.scrollTo(x, y, duration)
    }
  }
}
